package com.lzw.breezeNovel.model.enums.novel;



/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.enums
 * @date 2025/3/7
 * @description 广告投放的位置
 */
@SuppressWarnings("all")
public enum Advertisementpostition {
    //首页轮播图
    HOMEBANNER(0,"home_banner"),
    //阅读页底部
    READERBOTTOM(1,"reader_bottom"),
    //分类页侧边
    CATEGORYSIDE(2,"category_side");

    private Integer code;
    private String desc;

    Advertisementpostition(Integer code,String desc){
        this.code=code;
        this.desc=desc;
    }
    public Integer getCode() {
        return code;
    }


    /**
     * 根据code获取状态描述
     * @param code
     * @return
     */
    public static String getAdvertisementpostition(Integer code){
        for (Advertisementpostition advertisementpostition : Advertisementpostition.values()) {
            if (advertisementpostition.getCode().equals(code)){
                return advertisementpostition.desc;
            }
        }
        return null;
    }


}
